package br.com.skytef.entity;

import java.sql.Date;
import java.util.ArrayList;
import java.util.List;

import br.com.skytef.utils.Dates;

public class TicketEntity {

	private int idTicket;
	private int idOperator;
	private int idCompany;
	private int idFare;

	private int idVehicleType;
	private int idVehicleBrand;
	private int idVehicleModel;

	private Date dateCriation;
	private String vehiclePrism;
	private String vehiclePlate;
	private String vehicleColor;
	private String vehicleType;
	private String vehicleBrand;
	private String vehicleModel;
	private List<String> vehicleBelongings;
	private List<String> vehicleBreakdown;
	private String operador;
	private String company;
	

	public TicketEntity(TicketEntity ticket) throws Exception {
		super();
		this.idTicket = ticket.getIdTicket();
		this.idOperator = ticket.getIdOperator();
		this.idCompany = ticket.getIdCompany();
		this.idFare = ticket.getIdFare();
		this.dateCriation = ticket.getDateCriation();
		this.vehiclePrism = ticket.getVehiclePrism();
		this.vehiclePlate = ticket.getVehiclePlate();
		this.vehicleColor = ticket.getVehicleColor();
		this.vehicleType = ticket.getVehicleType();
		this.vehicleBrand = ticket.getVehicleBrand();
		this.vehicleModel = ticket.getVehicleModel();
		this.vehicleBelongings = ticket.getVehicleBelongings();
		this.vehicleBreakdown = ticket.getVehicleBreakdown();
		
	}
	
	public TicketEntity() throws Exception {
		super();
		this.idTicket = 0;
		this.idOperator = 0;
		this.idCompany = 0;
		this.idFare = 0;
		this.dateCriation = Dates.dateUtilToSql(Dates.getDateNow());
		this.vehiclePrism = "";
		this.vehiclePlate = "";
		this.vehicleColor = "";
		this.vehicleType = "";
		this.vehicleBrand = "";
		this.vehicleModel = "";
		this.vehicleBelongings = new ArrayList<String>();
		this.vehicleBreakdown = new ArrayList<String>();
		this.company = "";
		this.operador = "";
	}

	public int getIdTicket() {
		return idTicket;
	}

	public void setIdTicket(int idTicket) {
		this.idTicket = idTicket;
	}

	public int getIdOperator() {
		return idOperator;
	}

	public void setIdOperator(int idOperator) {
		this.idOperator = idOperator;
	}

	public int getIdCompany() {
		return idCompany;
	}

	public void setIdCompany(int idCompany) {
		this.idCompany = idCompany;
	}

	public int getIdFare() {
		return idFare;
	}

	public void setIdFare(int idFare) {
		this.idFare = idFare;
	}

	public int getIdVehicleType() {
		return idVehicleType;
	}

	public void setIdVehicleType(int idVehicleType) {
		this.idVehicleType = idVehicleType;
	}

	public int getIdVehicleBrand() {
		return idVehicleBrand;
	}

	public void setIdVehicleBrand(int idVehicleBrand) {
		this.idVehicleBrand = idVehicleBrand;
	}

	public int getIdVehicleModel() {
		return idVehicleModel;
	}

	public void setIdVehicleModel(int idVehicleModel) {
		this.idVehicleModel = idVehicleModel;
	}

	public Date getDateCriation() {
		return dateCriation;
	}

	public void setDateCriation(Date dateCriation) {
		this.dateCriation = dateCriation;
	}

	public String getVehiclePrism() {
		return vehiclePrism;
	}

	public void setVehiclePrism(String vehiclePrism) {
		this.vehiclePrism = vehiclePrism;
	}

	public String getVehiclePlate() {
		return vehiclePlate;
	}

	public void setVehiclePlate(String vehiclePlate) {
		this.vehiclePlate = vehiclePlate;
	}

	public String getVehicleColor() {
		return vehicleColor;
	}

	public void setVehicleColor(String vehicleColor) {
		this.vehicleColor = vehicleColor;
	}

	public String getVehicleType() {
		return vehicleType;
	}

	public void setVehicleType(String vehicleType) {
		this.vehicleType = vehicleType;
	}

	public String getVehicleBrand() {
		return vehicleBrand;
	}

	public void setVehicleBrand(String vehicleBrand) {
		this.vehicleBrand = vehicleBrand;
	}

	public String getVehicleModel() {
		return vehicleModel;
	}

	public void setVehicleModel(String vehicleModel) {
		this.vehicleModel = vehicleModel;
	}

	public List<String> getVehicleBelongings() {
		return vehicleBelongings;
	}

	public void setVehicleBelongings(List<String> vehicleBelongings) {
		this.vehicleBelongings = vehicleBelongings;
	}

	public List<String> getVehicleBreakdown() {
		return vehicleBreakdown;
	}

	public void setVehicleBreakdown(List<String> vehicleBreakdown) {
		this.vehicleBreakdown = vehicleBreakdown;
	}

	public String getOperador() {
		return operador;
	}

	public void setOperador(String operador) {
		this.operador = operador;
	}

	public String getCompany() {
		return company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

}
